package com.server.modules.api.service.impl;

import com.server.modules.api.dao.ApplyLoanAPIDao;
import com.server.modules.api.dao.ArticleAPIDao;
import com.server.modules.api.service.IApplyLoanAPIService;
import com.server.modules.api.service.IArticleAPIService;
import com.server.modules.api.vo.ApplyLoan;
import com.server.modules.api.vo.AriticalVo;
import com.server.modules.cms.entity.Article;
import com.server.modules.cms.entity.Category;
import com.server.modules.sys.entity.loan.CustomPay;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/9/19.
 */
@Service
public class ArticleAPIServiceImpl implements IArticleAPIService {

    @Autowired
    private ArticleAPIDao articleAPIDao;
    @Override
    public List<Article> getRecentlyPushArticles() {
        return articleAPIDao.getRecentlyPushArticles();
    }

    @Override
    public List<Category> getCategory() {
        return articleAPIDao.getCategory();
    }

    @Override
    public List<AriticalVo> getArticles(AriticalVo  vo) {
        return articleAPIDao.getArticles(vo);
    }
    @Override
    public List<Article> getRecommendArticles() {
        return articleAPIDao.getRecommendArticles();
    }


}
